package com.itheima.reggie.mapper;

import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.DishFlavor;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: dw
 * @Date 2022/3/12 0:04
 */
public interface DishFlavorMapper {

    /**
     *  新增菜品关联的口味列表
     * @param dishFlavorList
     * @return
     */
    Integer save(@Param("dishFlavorList") List<DishFlavor> dishFlavorList);

    /**
     * 根据菜品id删除菜品口味列表
     * @param dishId
     * @return
     */
    Integer delete(Long dishId);


    /**
     * 根据菜品id查询关联的口味
     * @param dishId
     * @return
     */
    List<DishFlavor> findByDishId(Long dishId);
}
